package chapter03;
public class Test06_interface {
    public static void main(String[] args) {
        Mouse m = new Mouse();
        m.connect();
        m.disconnect();
        m.light();
        System.out.println(USB.getConNumber());
        System.out.println(USB.conNumber);
        keyboard k=new keyboard();
        k.connect();
        k.disconnect();
    }
}
//实施接口 keyboard
class Mouse implements USB{
    public void connect(){
        System.out.println("鼠标连接电脑");
    }
    public void disconnect(){
        System.out.println("鼠标断开连接");
    }
}
class keyboard implements USB{
    public void connect(){
        System.out.println("键盘连接电脑");
    }
    public void disconnect(){
        System.out.println("键盘断开连接");
    }
}